public class MyMax {

	public static void main(String[] args) {
		Integer a = 100;
		Integer b = 200;
		Integer c = 300;
		Integer d = 500;

		Integer currentMax = Integer.MAX_VALUE;

		if (a > currentMax) {
			currentMax = a;
		}
		if (b > currentMax) {
			currentMax = b;
		}
		if (c > currentMax) {
			currentMax = c;
		}
		if (d > currentMax) {
			currentMax = d;
		}

		Integer result = currentMax;

		System.out.println(result);
	}

}
